home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: server.blaze.net.au!csource!not-for-mail
- From: Edward.Connor@f309.n632.z3.fidonet.org (Edward Connor)
- Subject: Edit box & SetWindowText?
- Sender: news@blaze.net.au (news)
- Organization: FidoNet: Melbourne PC User Group BBS
- Message-ID: <2c4_9604160250@csource.blaze.net.au>
- X-Nntp-Posting-Host: csource.blaze.net.au
- Date: Sun, 14 Apr 1996 22:42:22 GMT
-
- Hi All
-
- Why are things never as straight forward as they appear they can/should be?
-
- Or is it me???
-
- I create an edit box as the book, my bible, shows me (ie: Teach Yourself
- Windows Programming in 21 Days) using CreateWindow(...). [Day 10]
- Then I insert text into it using SetWindowText(...)
-
- According to the book this "is a fairly simple process" which it is, but,
- the carriage returns do not initiate new lines. Instead all I get in the
- edit box instead of a carriage return is a small vertical line.
-
- I have discovered that if I add a new line thing '\n' to the cr thing '\r'
- then there will occur a new line break in the script, but this is not a
- very efficient way to go about things. I have experimented with all the
- ES_... and WS_... things in the construction of the edit box, but to no
- avail.
-
- There must be a 'proper' way to do it, but????
-
- Thanks to any one who can assist
- Ed.
-
-
- --
- Edward.Connor@f309.n632.z3.fidonet.org, Edward Connor 3:632/309 (FidoNet)
-
-